package com.example.newdemo.view;

import android.widget.FrameLayout;

import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.example.newdemo.BaseActivity;
import com.example.newdemo.R;
import com.example.newdemo.tv.ImageRecyclerFragment;
import com.example.newdemo.tv.VideoPlayFragment;
import com.example.newdemo.view.popup.PopupViewDemoFragment;

public class ShowViewFragmentActivity extends BaseActivity {

        @Override
    protected int getLayoutId() {
        return R.layout.act_image_fragment;
    }
    @Override
    protected void initView() {
        FrameLayout frameLayout = findViewById(R.id.frame_body_view);
        FragmentManager manager = getSupportFragmentManager();
        FragmentTransaction tr = manager.beginTransaction();

//        ImageRecyclerFragment imageFragment = new ImageRecyclerFragment();
//        VideoPlayFragment videoPlayFragment = new VideoPlayFragment();

        PopupViewDemoFragment popupViewDemoFragment = new PopupViewDemoFragment();
        tr.add(R.id.frame_body_view, popupViewDemoFragment);
        tr.commit();

    }

    @Override
    protected void initData() {

    }


}
